package org.jeecg.modules.api.commissionlog.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.api.commissionlog.entity.CommissionLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 分佣日志
 * @Author: jeecg-boot
 * @Date:   2024-09-26
 * @Version: V1.0
 */
public interface CommissionLogMapper extends BaseMapper<CommissionLog> {
    @Select("select ifnull(sum(amount),0) from fx_commission_log where DATE_FORMAT(create_time,'%Y-%m')=#{time}")
    BigDecimal getSumFyMoneyAmount(@Param("time") String time);

}
